We currently show a network as connected when it includes the
device's active access point.
However when connected to an OWE transition network, the public
AP redirects to a hidden AP that we ignore. To handle that case,
also consider a network active when it includes the currently
active connection.
https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6918
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2927>
this._device.connectObject(
'notify::active-access-point', () => this.notify('is-active'),
+ 'notify::active-connection', () => this.notify('is-active'),
this);
this._accessPoints = new Set();
}
get is_active() {
- return this._accessPoints.has(this._device.activeAccessPoint);
+ if (this._accessPoints.has(this._device.activeAccessPoint))
+ return true;
+
+ const {activeConnection} = this._device;
+ if (activeConnection)
+ return this._connections.includes(activeConnection.connection);
+
+ return false;
}
hasAccessPoint(ap) {